<@p.page>
<@p.intro navi=["安全性关系","用户管理","添加用户" ] tasks={
	"返回用户列表":"user!list.action"

}>
	在这里添加新用户。
</@p.intro>
	
<script src="../../js/jquery.js"></script>	

<script language="JavaScript">
<!--
	function passCheck(){
		if(document.addUser.employee_no.value.length<=0){
			alert("员工编号不能为空。");
			document.addUser.employee_no.focus();
			return false;
		}
		if(document.addUser.user_password.value!=document.addUser.user_password_confirm.value)
		{
			document.addUser.user_password.value="";
			document.addUser.user_password_confirm.value="";
			alert("两次密码不一致!");
			return false;
		}
		return true;
	}
//-->
</script>

<p/>
<form name="addUser" action="user!add.action" method="post">
	<table class="default" width="100%">	
		<tr>
			<td>员工编号：<input type="text" name="employee_no" maxlength="30"/><input type="button" name="" value="选择" onclick="$('#employee').toggle();"/></td>
		</tr>
		<tr id="employee" style={display:none;}>
			<td>
				<table class="default" width="50%">
					<col width="" align="center"/>
					<col width="" align="center"/>
					<col width="" align="center"/>
					<tr class="title">
						<td>员工编号</td>
						<td>员工姓名</td>
						<td>操作</td>
					</tr>
					<#list employees.list as e>
						<tr <@p.trClass/> <@p.trChangeColor/>>
							<td>${e.employee_no }</td>
							<td>${e.employee_name }</td>
							<td><input type="button" name="selectedNo" value="选择" onclick="javaSript:document.addUser.employee_no.value='${e.employee_no}';$('#employee').toggle();"/></td>
						</tr>
					</#list>
					<tr>
						<td colspan="3"><div align="right"><@p.paging employees/></div></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password"  name="user_password"  maxlength="12"/></td>
		</tr>
		<tr>
			<td>确认密码：<input type="password"  name="user_password_confirm" maxlength="12" /></td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="确定" onclick="return passCheck();"/>
				<input type="reset" value="取消"/>
			</td>
		</tr>
	</table>	
</form> 	
</@p.page>